package httpHandler

import (
	"gitee.com/zaiqiang231/lovesport-user-service/app/model"
	"gitee.com/zaiqiang231/lovesport-user-service/app/store"
	"github.com/gin-gonic/gin"
)

func GetTestArticleHandler(c *gin.Context) {
	articles := []*model.TestArticle{}
	store.GetDataStore().DB.Preload("Tags").Find(&articles)
	WriteResponse(c, 0, "success", articles)
}
